<?php
/* @var $this VolunteerController */
/* @var $model Volunteer */

$this->menu=array(
	array('label'=>'List Volunteer', 'url'=>array('index'),'icon'=>"icon-chevron-right"),
	array('label'=>'Create Volunteer', 'url'=>array('create'),'icon'=>"icon-chevron-right"),
	array('label'=>'Update Volunteer', 'url'=>array('update', 'id'=>$model->volunteer_id),'icon'=>"icon-chevron-right"),
	array('label'=>'Delete Volunteer', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->volunteer_id),'confirm'=>'Are you sure you want to delete this item?'),'icon'=>"icon-chevron-right"),
	array('label'=>'Manage Volunteer', 'url'=>array('admin'),'icon'=>"icon-chevron-right"),
);

?>

<?php $this->widget('bootstrap.widgets.TbAlert', array(
    'block' => false,
    'fade' => true,
    'closeText' => '&times;', // false equals no close link
    'events' => array(),
    'htmlOptions' => array(),
    'userComponentId' => 'user',
    'alerts' => array( // configurations per alert type
        // success, info, warning, error or danger
        'success' => array('closeText' => '&times;'),
    ),
));?>
 
<?php $box = $this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => 'Volunteer'.' ('.$model->volunteerName.')',
	'headerIcon' => 'icon-th-list',
	'htmlOptions' => array('class'=>'bootstrap-widget-table')
));?>



<?php $this->widget('bootstrap.widgets.TbDetailView',array(
'data'=>$model,
'attributes'=>array(
		'volunteer_code',
		'volunterPeople.people_fname', 
		'volunterPeople.people_lname',
		'volunterPeople.people_gender', 
		'volunterPeople.people_birthdate',
		'volunterPeople.people_marital_status', 
		'volunterPeople.people_address_1', 
		'volunterPeople.people_address_2',
		'volunterPeople.people_mobile', 
		'volunterPeople.people_email', 
		'volunterPeople.people_landline', 
		array( 
		'label'=>'Photo',
		'type'=>'image', 
		'value'=>Yii::app()->baseUrl.'/files/images/'.$model->volunterPeople->people_photo,
		), 
),
)); ?>
<?php $this->endWidget();?>
